package com.log.james.service;

import com.log.james.mapper.DestPortAnalysisDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class DestPortService implements DestPortAnalysisDao,Serializable {
    @Autowired
    private DestPortAnalysisDao destPortAnalysisDao;

    @Override
    public List<Map<String, Object>> getDestPort(Date starttime, Long destip, int destport) {
        return destPortAnalysisDao.getDestPort(starttime, destip, destport);
    }

    @Override
    public Map<String, Object> getPortAttackedDetails(Date st, Long destip) {
        return  destPortAnalysisDao.getPortAttackedDetails(st, destip);
    }
}
